//#include <base.js>
//#include <openlayersExt.js>
//#include <event.js>


/**
* 
* Oggetto per la creazione della statusbar
* 
* @namespace CWN2
* @class StatusbarBuilder
* 
*/

CWN2.StatusbarBuilder = {

	/**
	* 
	* Build the statusbar
	* 
	* @method build
	* 
	* 
	*/ 
	
	build: function() {

		// costruisco la statusbar
		var statusbarItems = [];
		
		// se presente widget CoordinateReadOut aggiungo i campi per X e Y
		if (CWN2.configuration.getWidgetConfigByName("CoordinateReadOut")) {
			var items = [
				{
					id : 'coordinate-readout',
					text : "Coordinate:",
					width : 200,
					xtype: "tbtext"
				}
			];
			statusbarItems.push(items);
		}

		// ritorno la statusbar
		return new Ext.Toolbar({id:"statusbar" , items: statusbarItems});
			
	}
	
};